<?php $aPath = Yii::app()->theme->baseUrl . '/assets/'; ?>
<div class="selected-content__top-panel">
    <div class="selected-content__top-panel__inner">
        <div class="player-wrap">
            <noindex>
                <div class="player">
                    <div class="player__inner" data-player-wrapper="true" style="position: relative; z-index: 5;">						
                        <canvas style="position: absolute; z-index: -1; bottom: -10px;" height="80" width="226" data-vizualizer="true"></canvas>
                        <div class="player__top-panel">
                            <div class="player__top-panel__info">
                                <small data-label-author="true"></small>
                                <span data-label-title="true"></span>
                            </div>
                            <div class="player__top-panel__time">
                                <span data-label-time="true">00:00</span>
                            </div>
                        </div>

                        <ul class="player__buttons">
                            <li class="player__buttons__prev">
                                <a href="#" data-previous="true">
                                    <span>Предыдущая</span>
                                </a>
                            </li>
                            <li class="player__buttons__play">
                                <a href="#" data-play="true" class="__play">
                                    <span>Пауза/Воспроизведение</span>
                                </a>
                            </li>
                            <li class="player__buttons__next">
                                <a href="#" data-next="true">
                                    <span>Следующая</span>
                                </a>
                            </li>
                        </ul>

                        <ul data-playlist="true" style="display: none;">
                            <?php foreach ($audioReviews as $audioReview): ?>
                                <li data-src="<?php echo Yii::app()->request->baseUrl; ?>/uploads/audio/<?php echo $audioReview['audioFileName']; ?>" data-author="<?php $name = explode(' ', $audioReview['audioName']);
                            echo 'Аудио отзыв: ' . $name[0]; ?>" data-title="<?php echo strlen($audioReview['audioTitle']) >= 20 ? mb_substr($audioReview['audioTitle'], 0, 20, 'utf-8') . '...' : $audioReview['audioTitle']; ?>"></li>
<?php endforeach; ?>
                        </ul>
                    </div>    
                </div>
            </noindex>
        </div>     
        <div class="selected-content__info-wrap">
            <div class="selected-content__info">
                <ul>
                    <li>
                        <a href="/status">
                            <span class="selected-content__info__icon">
                                <img src="<?php echo $aPath; ?>images/bg/selected-content__info__icon.png" alt="selected-content__info__icon" />
                            </span>
                            <span class="selected-content__info__text">Статус <br />ремонта</span>
                        </a>
                    </li>
                    <li>
                        <a href="/kontakty">
                            <span class="selected-content__info__icon">
                                <img src="<?php echo $aPath; ?>images/bg/selected-content__info__icon2.png" alt="selected-content__info__icon2" />
                            </span>
                            <span class="selected-content__info__text">Контакты и <br />режимы работ</span>
                        </a>
                    </li>
                    <li>
                        <a href="/online-broadcast">
                            <span class="selected-content__info__icon">
                                <img src="<?php echo $aPath; ?>images/bg/selected-content__info__icon3.png" alt="selected-content__info__icon3" />
                            </span>
                            <span class="selected-content__info__text">Видео-<br />трансляция</span>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span class="selected-content__info__icon">
                                <img src="<?php echo $aPath; ?>images/bg/selected-content__info__icon4.png" alt="selected-content__info__icon4" />
                            </span>
                            <span id="consultant" onclick="javascript:jivo_api.open();" class="selected-content__info__text">Онлайн <br />консультант</span>
                        </a>
                    </li>
                    <li>
                        <a href="/online-pay">
                            <span class="selected-content__info__icon">
                                <img src="<?php echo $aPath; ?>images/bg/selected-content__info__icon5.png" alt="selected-content__info__icon5" />
                            </span>
                            <span class="selected-content__info__text">Онлайн<br /> оплата</span>
                        </a>
                    </li>
                </ul>
            </div>    
        </div>    
    </div>    
</div>
